diff options
| author | Adam Soltys <[email protected]> | 2023-03-11 17:47:15 -0800 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2023-03-11 17:47:15 -0800 |
| commit | f5eaf3eac19e0e2902b894effb14b58cc8c21d2d (patch) | |
| tree | f9a16fcf187ab1657bcc3d97fd5b2df4e35f95e6 /src/routes/(app)/[username]/invoice/+server.js | |
| parent | ffb2a1c2ccfeb8d6002644e2fcefe60a7fd20d05 (diff) | |
| download | coinos-ui-f5eaf3eac19e0e2902b894effb14b58cc8c21d2d.tar.gz coinos-ui-f5eaf3eac19e0e2902b894effb14b58cc8c21d2d.zip | |
fix param name
Diffstat (limited to 'src/routes/(app)/[username]/invoice/+server.js')
| -rw-r--r-- | src/routes/(app)/[username]/invoice/+server.js | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/routes/(app)/[username]/invoice/+server.js b/src/routes/(app)/[username]/invoice/+server.js index 1321739e..461d380c 100644 --- a/src/routes/(app)/[username]/invoice/+server.js +++ b/src/routes/(app)/[username]/invoice/+server.js @@ -1,5 +1,7 @@ import { auth, post } from '$lib/utils'; import { json } from '@sveltejs/kit'; -export let POST = async ({ cookies: c, request: r }) => - json(await post('/invoice', await r.json(), auth(c))); +export let POST = async ({ cookies: c, request: r }) => { + let j = await r.json(); + return json(await post('/invoice', j, auth(c))); +}; |
